package com.ins.mapper;

import com.ins.model.entity.AppInfoMarket;
import com.ins.model.vo.RecommendInfoVO;
import com.mybatisflex.core.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 信息集市 映射层。
 *
 * @author ins
 * @since 2024-05-14
 */
@Mapper
public interface AppInfoMarketMapper extends BaseMapper<AppInfoMarket> {


    /**
     * 随机推荐
     *
     * @return {@link List }<{@link AppInfoMarket }>
     */
    List<RecommendInfoVO> randRecommend(@Param("classify") String classify, @Param("limit") Integer limit);


    Integer countUserLikeNum(@Param("userId") Long userId);
}
